<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" 
 	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>创建编辑组</title>
	<link rel="stylesheet" type="text/css" href="/sview/css/group/group.css" />
	<link rel="stylesheet" type="text/css" href="/sview/css/layout.css" />
	<link rel="stylesheet" type="text/css" href="/sview/css/easyui.css" />
	<link rel="stylesheet" type="text/css" href="/sview/css/smoothness/jquery-ui-1.8.16.custom.css" />
	<script type="text/javascript" src="/sview/script/jquery.js"></script>
	<script type="text/javascript" src="/sview/script/jquery.easyui.min.js"></script>
	 <script type="text/javascript" src="/sview/script/jquery-ui-1.8.16.custom.min.js"></script>
	<script type="text/javascript" src="/sview/script/group/gcreate.js"></script>
<script type="text/javascript" src="/sview/script/global.js"></script>
  </head>
  <%
     String lang = request.getParameter("lang");
     if (lang != null && lang.equals("en")) {
			request.getRequestDispatcher("gcreate.jsp").forward(
					request, response);
		} else if (lang == null) {
			lang = "zh";
		}
     String from = request.getParameter("from");
     
     String uname = (String)request.getSession().getAttribute("user");
     if(uname == null){
     	uname = (String)request.getParameter("user");
     }
      if(uname==null){
    		response.sendRedirect("/sview/views/index_zh.jsp");
     	return;
     }
%>
  <body> 
    <jsp:include page="/vheader_zh.jsp" flush="true" />
    <div id="container" class="container">
	    <div class="gHeader"><span class="large">创建编辑组</span></div>
	    <div id="gcreate_section" class="section">
	    <form id="gcreateForm">
	    	<div class="fields">
		    	<label>编辑组名</label>
			    <input class="ftext" type="text" name="gname" id="gname" />
			    <span class="tips">
				    <span class="emborder1"></span>
				    <span class="emborder2"></span>
				    3-100 个字符 (由字母、数字、下划线、'@'、'.'构成)
				</span>
				<span class="error-msg"></span>
			</div>
			<div class="operate">
		    	<input type="button" value="确定" class="form-button" onclick="return validate();">
			</div>
			<input type="hidden" id="display-lang" value="zh" />
			<input type='hidden' name='uname' id='uname' value='<%=uname %>' />
	       <%if(from!=null){ %>
	       <input type='hidden' name="from" id="from" value="<%=from%>"/>
	       <%} %>
	    </form>
	    </div>
    </div>
   <jsp:include page="/vfooter_zh.jsp"></jsp:include>
  </body>
</html>
